package caiziyou.com.designpattern.proxy.staticproxy;
/**
 * 静态代理模式缺点，代理需要实现接口的
 * 
 * @author caijianchao
 * @date 2020年6月1日
 * Client.java
 */
public class Client {

	public static void main(String[] args) {
		//创建目标对象
		TeacherDao teacherDao = new TeacherDao();
		//创建代理对象
		TeacherDaoProxy teacherDaoProxy = new TeacherDaoProxy(teacherDao);
		
		teacherDaoProxy.teach();
	}
}
